package LECONGHAU.OOP.EXCERCISE01.BAI1;

import java.util.Scanner;

public class CONTROLLER {
	String userName,passWord;
	public void nhap(){
		do{
			System.out.println("moi nhap vao username");
			Scanner sc=new Scanner(System.in);
			userName=sc.nextLine();
			System.out.println("moi nhap vao password");
			passWord=sc.nextLine();
			if(userName.isEmpty()||passWord.isEmpty()){
				System.out.println("moi nhap lai tai khoan");
			}
		}while(userName.isEmpty()||passWord.isEmpty());
	}
public boolean checkUserInfo(String userName,String passWord){
	return userName.equals("lehau")&&passWord.equals("hau123")?true:false;
}
}
